import { request } from "@/utils/axiosInstance.js";

export function list() {
    return request({
        url: "/shop/",
    });
}

export function add(data) {
    return request({
        url: "/shop/add",
        method: "post",
        data
    });
}

export function update(data) {
    return request({
        url: "/shop/update",
        method: "post",
        data
    });
}

export function del(data) {
    return request({
        url: "/shop/del",
        method: "post",
        data
    });
}

export function addShopType(data) {
    return request({
        url: "/shop/type/add",
        method: "post",
        data
    });
}

export function delShopType(data) {
    return request({
        url: "/shop/type/del",
        method: "post",
        data
    });
}

